/**
 * @author 黄波
 * 创建日期：2011Aug 28, 2011
 * TODO// N/A
 */
package com.platform.dev.action;

import java.util.List;

import com.platform.dev.bo.DevBo;
import com.platform.pojo.Module;

//加载开发配置模块信息
public class LoadModuleAction extends DevSupport {

	private List<Module> modules;
	private String nodeId;
	private String nodeText;
	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public String getNodeText() {
		return nodeText;
	}

	public void setNodeText(String nodeText) {
		this.nodeText = nodeText;
	}

	/**
	 * @return the modules
	 */
	public List<Module> getModules() {
		return modules;
	}

	/**
	 * @param modules the modules to set
	 */
	public void setModules(List<Module> modules) {
		this.modules = modules;
	}

	@Override
	public String execute() throws Exception {
		DevBo bo = new DevBo();
		modules = bo.getModules();
		if(nodeText != null) {
			nodeText = new String(nodeText.getBytes("iso-8859-1"), "utf-8");
		}
		return SUCCESS;
	}
	
}
